import request from '@/utils/request'

// 查询设备数据配置列表
export function listDeviceTypeConf(query) {
  return request({
    url: '/iotoperation/DeviceTypeConf/list',
    method: 'get',
    params: query
  })
}

// 查询设备数据配置详细
export function getDeviceTypeConf(id) {
  return request({
    url: '/iotoperation/DeviceTypeConf/' + id,
    method: 'get'
  })
}

// 新增设备数据配置
export function addDeviceTypeConf(data) {
  return request({
    url: '/iotoperation/DeviceTypeConf',
    method: 'post',
    data: data
  })
}

// 修改设备数据配置
export function updateDeviceTypeConf(data) {
  return request({
    url: '/iotoperation/DeviceTypeConf',
    method: 'put',
    data: data
  })
}

// 删除设备数据配置
export function delDeviceTypeConf(id) {
  return request({
    url: '/iotoperation/DeviceTypeConf/' + id,
    method: 'delete'
  })
}
